app.controller("indexController",function ($scope,indexService) {
    //定义一个对象接收菜单分类
    $scope.category = [];
    $scope.findCategory = function () {
        indexService.findCategory().success(
            function (response) {
               // alert(response);
                $scope.category = response;
            }
        )
    }
})